package cn.freereflect.result;

public enum ServerEnum {
    SUCCESS("200","请求成功!"),
    ERROR("500","请求失败!"),
    ERROR_DATA_NULL("201","参数不完整，请重试！"),
    SUCCESS_LOGIN("200","登录成功"),
    SUCCESS_LOGIN_NULL("201","账号或密码不正确！"),
    SUCCESS_NO_LOGIN("001","用户未登录"),
    SUCCESS_NO_PROMESS("002","用户没权限"),
    SUCCESS_ORDER_STOCK_NULL("204","不好意思商品被抢走了"),
    SUCCESS_MTOKEN_NULL("202","重复提交"),
    SUCCESS_LOGIN_LOCK("201","账号冻结"),
    LOGIN_CURRENT_ANAGIN("002","异地登录提醒"),
    ;
    private String code;

    private String msg;
    ServerEnum() {
    }

    ServerEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
